package com.our.sys.project1.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.Page;
import org.springside.modules.orm.PropertyFilter;

import com.our.sys.project1.dao.PurchasePlanDao;
import com.our.sys.project1.entity.PurchasePlan;

/**
 * 管理采购计划的新建，修改，删除，审核，驳回
 * @author acer
 *
 */
@Transactional
@Service
public class PurchasePlanService {

    @Autowired
    private PurchasePlanDao purchasePlanDao;
    
    private static Logger logger = LoggerFactory.getLogger(PurchasePlanService.class);
    
    @Transactional(readOnly = true)
    public Page<PurchasePlan> query(Page<PurchasePlan> page, List<PropertyFilter> filters) {
        Page<PurchasePlan> curPage = purchasePlanDao.findPage(page, filters);
        return curPage;
    }
    
    
}
